package entity.nvdcve;

/**
 * 参考nvd-cve json schema 1.1
 * schema地址：https://csrc.nist.gov/schema/nvd/feed/1.1-Beta/nvd_cve_feed_json_1.1_beta.schema
 *
 * @author xym
 * @since 2020/7/15
 */
public class BaseMetricV2 {
    private String severity;
    private Double exploitabilityScore;
    private Double impactScore;
    private Boolean acInsufInfo;
    private Boolean obtainAllPrivilege;
    private Boolean obtainUserPrivilege;
    private Boolean obtainOtherPrivilege;
    private Boolean userInteractionRequired;
    private CvssV2 cvssV2;

    public String getSeverity() {
        return severity;
    }

    public void setSeverity(String severity) {
        this.severity = severity;
    }

    public Double getExploitabilityScore() {
        return exploitabilityScore;
    }

    public void setExploitabilityScore(Double exploitabilityScore) {
        this.exploitabilityScore = exploitabilityScore;
    }

    public Double getImpactScore() {
        return impactScore;
    }

    public void setImpactScore(Double impactScore) {
        this.impactScore = impactScore;
    }

    public Boolean getAcInsufInfo() {
        return acInsufInfo;
    }

    public void setAcInsufInfo(Boolean acInsufInfo) {
        this.acInsufInfo = acInsufInfo;
    }

    public Boolean getObtainAllPrivilege() {
        return obtainAllPrivilege;
    }

    public void setObtainAllPrivilege(Boolean obtainAllPrivilege) {
        this.obtainAllPrivilege = obtainAllPrivilege;
    }

    public Boolean getObtainUserPrivilege() {
        return obtainUserPrivilege;
    }

    public void setObtainUserPrivilege(Boolean obtainUserPrivilege) {
        this.obtainUserPrivilege = obtainUserPrivilege;
    }

    public Boolean getObtainOtherPrivilege() {
        return obtainOtherPrivilege;
    }

    public void setObtainOtherPrivilege(Boolean obtainOtherPrivilege) {
        this.obtainOtherPrivilege = obtainOtherPrivilege;
    }

    public Boolean getUserInteractionRequired() {
        return userInteractionRequired;
    }

    public void setUserInteractionRequired(Boolean userInteractionRequired) {
        this.userInteractionRequired = userInteractionRequired;
    }

    public CvssV2 getCvssV2() {
        return cvssV2;
    }

    public void setCvssV2(CvssV2 cvssV2) {
        this.cvssV2 = cvssV2;
    }

    @Override
    public String toString() {
        return "BaseMetricV2{" +
                "severity='" + severity + '\'' +
                ", exploitabilityScore=" + exploitabilityScore +
                ", impactScore=" + impactScore +
                ", acInsufInfo=" + acInsufInfo +
                ", obtainAllPrivilege=" + obtainAllPrivilege +
                ", obtainUserPrivilege=" + obtainUserPrivilege +
                ", obtainOtherPrivilege=" + obtainOtherPrivilege +
                ", userInteractionRequired=" + userInteractionRequired +
                ", cvssV2=" + cvssV2 +
                '}';
    }
}
